assert_fails

(alias) function <T> assert_fails(fn: () -> T): rell.test.failure

Asserts that a function fails to evaluate

Alias

Since

0.11.0

Parameters

fn

Function to evaluate


(alias) function <T> assert_fails(expected_message: text, fn: () -> T): rell.test.failure

Asserts that a function fails with an expected message

Alias

Since

0.11.0

Parameters

expected_message

String that should be contained in the error message

fn

Function to evaluate